package com.zhj.tree.redblack;

import lombok.Data;

/**
 *
 */
@Data
public class RedBlackTreeNode {

    /** RED */
    public static boolean RED = false;
    /** BLACK */
    public static boolean BLACK = true;

    /** 节点颜色 */
    private boolean color;
    /** 数据 */
    private int data;

    /** 左边节点 */
    private RedBlackTreeNode left;
    /** 右边节点 */
    private RedBlackTreeNode right;
    /** 父节点 */
    private RedBlackTreeNode parent;

    public RedBlackTreeNode(int data) {
        this.data = data;
    }
}
